<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="../../js/jquery.js"></script>

<body>
<div class="place"><span>位置：</span>
    <ul class="placeul">
        <li>采购管理</li>
        <li>采购单审核</li>
        <li>基本内容</li>
    </ul>
</div>

<div class="rightinfo">
    <form action="/purchaseOrderManage/vaguePurchaseOrderReview" method="post">
        <ul class="tools">
            <li> 采购单编号:
                <input type="text" name="purchaseId"/>
            </li>
            <li> 采购时间:
                <label for="date1"><input type="date" id="date1" name="date1" value=""/></label>-<label
                        for="date2"><input
                        type="date" id="date2" name="date2" value=""/></label>
            </li>
            <li> 金额:
                <input type="text" class="stinput" name="totalMoney1" value=""
                       oninput="if(!/^[0-9]+$/.test(value)) value=value.replace(/\D/g,'');if(value>5000000)value=5000000;if(value<1)value=1"/>-<input
                        type="text" class="stinput"
                        oninput="if(!/^[0-9]+$/.test(value)) value=value.replace(/\D/g,'');if(value>5000000)value=5000000;if(value<1)value=1"
                        name="totalMoney2" value=""/>
            </li>

            <input class="subBut" type="submit" src="../../images/t06.png" value="查询"/>

        </ul>
        <table class="tablelist">
            <thead>
            <tr>
                <th>序号</th>
                <th>采购单编号</th>
                <th>采购时间</th>
                <th>金额</th>
                <th>操作人</th>
                <th>审核状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>

            <tr th:each="p:${queryAllUnapproved.data}">
                <td>[[${pStat.index + 1}]]</td>
                <td>[[${p.purchaseId}]]</td>
                <td>[[${#dates.format(p.purchaseTime, 'yyyy-MM-dd HH:mm')}]]</td>
                <td>[[${p.totalMoneyTemp}]]</td>
                <!--        操作人就是登录人-->
                <td>[[${p.uname}]]</td>
                <td>
                    <span th:if="${p.checkStatus} eq 1">未审核</span>
                    <span th:if="${p.checkStatus} eq 2">审核中</span>
                    <span th:if="${p.checkStatus} eq 3">审核通过</span>
                    <span th:if="${p.checkStatus} eq 4">审核未通过</span>
                </td>
                <td>
                    <a th:href="@{/purchaseOrderManage/queryOneUnapproved/{id}
                    (id=${p.purchaseId})}" class="tablelink">审核</a>
                </td>
            </tr>
            </tbody>
        </table>

        <div class="pagin">
            <div class="message">共<i class="blue">[[${queryAllUnapproved.totalRows}]]</i>条记录，当前显示第&nbsp;<i
                    class="blue">[[${queryAllUnapproved.pageNum}]]&nbsp;</i>页
            </div>
            <ul class="paginList">

                <span th:if="${queryAllUnapproved.totalPage < 3}">

                <li class="paginItem"><a th:href="@{${'queryAllPageUnapproved'}(pageNum=${1})}">1</a></li>
                <li class="paginItem current"><a th:href="@{${'queryAllPageUnapproved'}(pageNum=${2})}">2</a></li>
                </span>

                <span th:if="${queryAllUnapproved.totalPage >= 3}">

                    <li class="paginItem" th:if="${queryAllUnapproved.pageNum>1}"><a
                            th:href="@{${'queryAllPageUnapproved'}(pageNum=${queryAllUnapproved.pageNum-1})}"><span
                            class="pagepre"></span></a>
                    </li>
                <li class="paginItem"><a th:href="@{${'queryAllPageUnapproved'}(pageNum=${1})}">1</a></li>
                <li class="paginItem current"><a th:href="@{${'queryAllPageUnapproved'}(pageNum=${2})}">2</a></li>
                <li class="paginItem more"><a href="javascript:;">...</a></li>
                <li class="paginItem"><a
                        th:href="@{${'queryAllPageUnapproved'}(pageNum=${queryAllUnapproved.totalPage})}">[[${queryAllUnapproved.totalPage}]]</a>
                </li>
                <li class="paginItem" th:if="${queryAllUnapproved.pageNum<=queryAllUnapproved.totalPage-1}"><a
                        th:href="@{${'queryAllPageUnapproved'}(pageNum=${queryAllUnapproved.pageNum+1})}"><span
                        class="pagenxt"></span></a>
                </li>
                </span>


            </ul>
        </div>

    </form>
</div>
<script type="text/javascript">
    $('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>
</html>
